package com.example.controller;

//
//import com.example.maperInterface.CheckItemDao;
import com.example.maperInterface.CheckItemDao;
import com.starry.constant.Message;
import com.starry.entity.Result;
import com.starry.pojo.CheckItem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

@RestController
@RequestMapping(value = "/CheckItem")
public class CheckItemController {


    @Autowired
    private CheckItemDao checkItemDao;
    @RequestMapping(value ="/CheckItem")
    public Result findAll(){
        ArrayList<CheckItem> all = checkItemDao.findAll();
        return new Result(true, Message.FINDCHECKITEMSUCCESS,all);
    }
}
